package com.example.mardan_demo1.mapper;

import com.example.mardan_demo1.pojo.Announcement.Announcement;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author:买尔旦江 ×@CreateTime: 2024-12-18
 * @Description: 公告mapper
 * @Version: 1.0
 */

@Mapper
public interface AnnouncementMapper {
    void add(Announcement announcement);

    void deleteById(Integer id);

    List<Announcement> getGongGaoList(String title);

    Announcement getById(Integer id);

    void updateById(Announcement announcement);

    void updateHiddenById(Integer id, Boolean b);

    List<Announcement> getUserGongGaoList(String title);
}
